
import { get, post } from '../utils/request'
module.exports = {
  getArticles: function (query) {
    return get('/articles/', {}, query)
  },
  getArticle: function (id) {
    return get(`/articles/${id}/`, {}, {})
  },
}